<?php

namespace App\Models;

use Illuminate\Database\Eloquent\SoftDeletes;

class LuckyBagLog extends BaseModels
{
    use SoftDeletes;

    protected $table = 'lucky_bag_logs';
    protected $primaryKey = 'id';

    const TYPE_MONEY = 1;
    const TYPE_LESSON = 2;

    const UPPER_LIMIT = 2;

    public function getBagId()
    {
        return $this->bag_id;
    }

    public function setBagId($value)
    {
        $this->bag_id = $value;
    }

    public function getStudentId()
    {
        return $this->student_id;
    }

    public function setStudentId($value)
    {
        $this->student_id = $value;
    }

    public function getType()
    {
        return $this->type;
    }

    public function setType($value)
    {
        $this->type = $value;
    }

    public function getAmount()
    {
        return $this->amount;
    }

    public function setAmount($value)
    {
        $this->amount = $value;
    }

    public function getCreatedAt()
    {
        return $this->created_at;
    }

    public function setCreatedAt($value)
    {
        $this->created_at = $value;
    }
}